package com.ruoyi.business.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.ruoyi.common.config.serializer.SqlTimeDeserializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.sql.Time;
import java.util.Date;

/**
 * 医师医嘱对象 hurt_doctor_advice
 * 
 * @author ruoyi
 * @date 2024-04-24
 */
public class HurtDoctorAdvice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 医师ID */
    @Excel(name = "医师ID")
    private Long doctorId;

    private String doctorName;

    /** 患者ID */
    @Excel(name = "患者ID")
    private Long patientId;

    private String patientName;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /**
     * 提醒时间
     */
    @JsonDeserialize(using = SqlTimeDeserializer.class)
    private Time remindTime;

    /**
     * 重复方式
     */
    private Integer method;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDoctorId(Long doctorId) 
    {
        this.doctorId = doctorId;
    }

    public Long getDoctorId() 
    {
        return doctorId;
    }
    public void setPatientId(Long patientId) 
    {
        this.patientId = patientId;
    }

    public Long getPatientId() 
    {
        return patientId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public String getPatientName() {
        return patientName;
    }

    public void setPatientName(String patientName) {
        this.patientName = patientName;
    }

    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }

    public Time getRemindTime() {
        return remindTime;
    }

    public void setRemindTime(Time remindTime) {
        this.remindTime = remindTime;
    }

    public Integer getMethod() {
        return method;
    }

    public void setMethod(Integer method) {
        this.method = method;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("doctorId", getDoctorId())
            .append("doctorName", getDoctorName())
            .append("patientId", getPatientId())
            .append("patientName", getPatientName())
            .append("title", getTitle())
            .append("content", getContent())
            .append("remindTime", getRemindTime())
            .append("method", getMethod())
            .append("createTime", getCreateTime())
            .toString();
    }
}
